package imachine;

/**
 * Class for the trigger in Finite State Machine.
 * An event may trigger different transition in 
 * different state. So a trigger can be taken as
 * the combination of an event and a transition. 
 * 
 * @version 0.0.1
 * @author Xiong Yi: xiongyee2000@gmail.com
 */
public final class Trigger {
	/**
	 * The event id.
	 */
	public final int eventId;

	/**
	 * The transition id.
	 */
	public final int transitionId;

	/**
	 * Constructor
	 * @param eventId the event id
	 * @param transitionId the transition id
	 */
	public Trigger(int eventId, int transitionId) {
		this.eventId = eventId;
		this.transitionId = transitionId;
	}
}
